package com.lyy.blog.service;

import com.lyy.blog.dao.userrepositroy;
import com.lyy.blog.po.user;
import com.lyy.blog.util.md5util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userserviceimpl implements userservice {
    @Autowired
    private userrepositroy  userrepositroy;
    public user checkuser(String username, String password) {
        user user= userrepositroy.findByUsernameAndPassword(username, md5util.code(password));
        return user;
    }
}
